package com.qiuhui.controller;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @ClassName: UserController
 * @Description: TODO
 * @author: tian
 * @date: 2021/3/22  10:32 上午
 */
public class UserController implements Controller {
    @Override
    public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {
        ModelAndView model = new ModelAndView();
        model.addObject("msg", "HelloSpringMVC");
        model.setViewName("hello");
        return model;
    }
}
